@import url('https://fonts.googleapis.com/css?family=Poppins:900i');

:root {


    --brand-color-4: #007bff;
    --color-white: #fff;

}

/*--Hero component--*/
.content-container-home-page {
    & .hero-section {
        background-repeat: no-repeat;
        background-position: center;
        background-origin: padding-box;
        background-size: cover;
        /* Ensure the image covers the entire section */
        padding: 80px 0;
        text-align: center;
        animation: fadeIn 1.5s ease-in-out;
        position: relative;
        color: var(--color-white);
        /* Ensure text is readable over the background image */

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            /* Add an overlay to make the text more readable */
            z-index: 1;
        }

        & .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            /* Control the width of the content */
            margin: 0 auto;

            h1 {
                font-family: 'Poppins', sans-serif;
                font-weight: 700;
                color: #ffffff;
                font-size: 2.5rem;
                margin-bottom: 20px;
                z-index: 999;
            }

            p {
                font-family: 'Poppins', sans-serif;
                font-weight: 600;
                color: #cccccc;
                margin-top: 20px;
                font-size: 1.2rem;
            }
            .btn-primary {
                /* Base styles */
                padding: 12px 24px;
                font-size: 16px;
                font-weight: 500;
                color: white;
                background-color: var(--nav-bg-color);
                border: none;
                border-radius: 6px;
                cursor: pointer;
                position: relative;
                overflow: hidden;
                transition: all 0.3s ease;
                
                /* Flex for icon alignment */
                display: inline-flex;
                align-items: center;
                gap: 8px;
            }
            
            /* Default icon with animation */
            .btn-primary::after {
                content: '\2192'; /* Right arrow unicode - you can change this */
                font-size: 14px;
                opacity: 1; /* Visible by default */
                transition: all 0.3s ease;
                transform: rotate(0deg); /* Starting position */
            }
            
            /* Hover effects */
            .btn-primary:hover {
                background-color: #0056b3;
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
            }
            
            .btn-primary:hover::after {
                transform: translateX(5px) rotate(360deg); /* Moves right and spins */
                color: #ffffff;
            }
            
            /* Click animation */
            .btn-primary:active {
                transform: scale(0.95);
                box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
            }
            
            .btn-primary:active::after {
                transform: scale(1.2); /* Slight grow effect on click */
            }
            
            /* Ripple effect on click */
            .btn-primary::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 0;
                height: 0;
                background: rgba(255, 255, 255, 0.2);
                border-radius: 50%;
                transform: translate(-50%, -50%);
                animation: ripple 0.6s linear;
                pointer-events: none;
            }
            
            /* Ripple animation keyframes */
            @keyframes ripple {
                to {
                    width: 300px;
                    height: 300px;
                    opacity: 0;
                }
            }
            
            /* Bounce animation for icon */
            @keyframes bounce {
                0% { transform: translateX(0); }
                50% { transform: translateX(5px); }
                100% { transform: translateX(0); }
            }
            
            /* Apply bounce animation on load */
            .btn-primary {
                animation: bounce 1.5s infinite ease-in-out;
            }
            
            /* Stop bounce on hover and show spin instead */
            .btn-primary:hover {
                animation: none;
            }
            
            /* Disabled state */
            .btn-primary:disabled {
                background-color: #6c757d;
                cursor: not-allowed;
                transform: none;
                box-shadow: none;
                animation: none;
            }
            
            .btn-primary:disabled::after {
                opacity: 0.5;
            }

        }
    }

    @media (max-width: 768px) {
        & .hero-section {
            padding: 50px 10px;
            background-position: top;
            /* Adjust the background position for smaller screens */

            & .hero-content {
                h1 {
                    font-size: 2rem;
                }

                p {
                    font-size: 1rem;
                }

                .btn.btn-primary {
                    padding: 10px 20px;
                    font-size: 0.9rem;
                }
            }
        }
    }

    /* Keyframes for animations */

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }





    .features-section {
        background-color: #f9f9f9;
        padding: 60px 0;
        text-align: center;

        .section-title {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            color: #333;
            margin-bottom: 40px;
        }

        .features-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;

            .feature-card {
                background-color: var(--color-white);
                border-radius: 10px;
                padding: 20px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                text-align: center;
                width: 100%;
                max-width: 300px;
                transition: transform 0.3s ease, box-shadow 0.3s ease;

                i {
                    font-size: 2rem;
                    color: var(--brand-color-4);
                    margin-bottom: 15px;
                }

                h3 {
                    font-family: 'Poppins', sans-serif;
                    font-weight: 600;
                    color: #333;
                    margin-bottom: 10px;
                }

                p {
                    font-family: 'Poppins', sans-serif;
                    color: #666;
                }

                &:hover {
                    transform: translateY(-10px);
                    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
                }
            }
        }

    }


    .technology-highlights {
        .section-title {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            color: #333;
            margin-bottom: 40px;
        }

        .tech-card {
            background-color: var(--color-white);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 100%;
            max-width: 250px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;

            a {
                text-decoration: none;
            }
        }

        .tech-card img {
            max-width: 100px;
            margin-bottom: 15px;
        }

        .tech-card h3 {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
        }

        .tech-card p {
            font-family: 'Poppins', sans-serif;
            color: #666;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            /* number of lines to show */
            line-clamp: 4;
            -webkit-box-orient: vertical;
            text-decoration: none;
        }

        .tech-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            text-decoration: none;
        }

        /* Swiper Navigation */
        .swiper-button-next,
        .swiper-button-prev {
            color: #333;
        }

        .swiper-pagination-bullet-active {
            background-color: #333;
        }

    }



    .technology-highlights {
        background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
        padding: 60px 0;
        text-align: center;

        @media (max-width:480px) {
            padding: 45px 0px;
        }

        @media (min-width: 1200px) {

            .container,
            .container-lg,
            .container-md,
            .container-sm,
            .container-xl {
                max-width: 1090px;
            }
        }

        .swiper-button-next:after,
        .swiper-rtl .swiper-button-prev:after,
        .swiper-button-prev:after {
            font-size: 30px;
        }

        .swiper-pagination {
            display: none;
        }

    }


    .interactive-sidebar {
        display: flex;
        flex-wrap: wrap;
        padding: 20px;
        max-width: 100%;
        margin: 0 auto;
        background-color: #f5f5f5;

        @media (max-width:480px) {
            flex-direction: column;
            padding: 10px 5px;

            .content-area {
                padding: 15px;

                .show-more-btn {
                    margin-top: 5px;
                    padding: 8px 16px;
                    background-color: var(--brand-color-4);
                    color: white;
                    border: none;
                    border-radius: 5px;
                    cursor: pointer;
                    font-size: 16px;
                    align-content: center;
                    position: relative;
                    left: 30%;
                }
            }
        }

        h2.section-title {
            font-family: 'Poppins', sans-serif;
            font-size: 32px;
            color: #333;
            text-align: center;
            margin: 0;
            /* Remove any default margins */
            padding: 20px 0;
            /* Add some padding for spacing */
            width: 100%;
            /* Ensure the title spans the full width of the section */
            box-sizing: border-box;
            /* Include padding in the element's total width and height */
            font-weight: 700;
        }

        .sidebar {
            flex: 1;
            max-width: 200px;
            margin-right: 20px;

            .sidebar-btn {
                display: block;
                width: 100%;
                padding: 15px;
                margin-bottom: 10px;
                background-color: var(--brand-color-4);
                color: #ffffff;
                border: none;
                border-radius: 4px;
                text-align: left;
                cursor: pointer;
                font-family: 'Poppins', sans-serif;
                transition: background-color 0.3s ease;

                &:hover,
                &:active {
                    background-color: #0056b3;
                }
            }

            @media (max-width:480px) {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-self: center;
                width: 100%;
                max-width: 220px;

                .sidebar-btn {
                    padding: 9px;
                    font-size: 14px;
                    width: 100%;

                }
            }
        }



        .content-area {
            flex: 2;
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            height: 80%;
            align-self: center;
            border-color: #333;

            .content-box {
                display: none;

                &.active {
                    display: block;
                }

                h3 {
                    font-family: 'Poppins', sans-serif;
                    font-size: 24px;
                    color: #333;
                    margin-bottom: 10px;
                }

                p {
                    font-family: 'Poppins', sans-serif;
                    font-size: 16px;
                    color: #666;
                }

                a {
                    display: inline-block;
                    margin-top: 15px;
                    color: var(--brand-color-4);
                    text-decoration: none;
                    font-family: 'Poppins', sans-serif;
                    font-size: 16px;

                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
        }

        .more-content {
            display: none;

            .tech-tags-con {
                display: flex;
                flex-direction: row;
                max-width: 100%;
                gap: 10px;
                flex-wrap: wrap;
                /* Allows tags to wrap to the next line if needed */
                margin-bottom: 20px;
            }

            .tech-tags {
                color: var(--brand-color-4);
                font-family: 'Poppins', sans-serif;
                font-weight: 500;
                padding: 12px 25px;
                border-radius: 25px;
                background-color: transparent;
                position: relative;
                display: inline-block;
                transition: color 0.3s ease, transform 0.3s ease;
                margin-top: 30px;
                font-size: 1rem;
                overflow: hidden;
                border: 2px solid var(--brand-color-4);
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                font-style: italic;

                &:hover {
                    color: #f5f5f5;
                    transform: scale(1.05);
                    /* Slightly enlarges button on hover */
                }

                &:before {
                    content: "";
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: var(--brand-color-4);
                    z-index: -1;
                    transition: top 0.6s ease;
                }

                &:hover::before {
                    top: 0;
                    /* Background starts filling from bottom to top */
                }

                @media (max-width:480px) {
                    padding: 8px 16px;
                    margin: 3px;
                    font-size: 0.8em;
                }
            }



        }

        .show-more-btn {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 20px;
            background-color: var(--brand-color-4);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        .show-more-btn:hover {
            background-color: #0056b3;
        }

        .show-more-btn .chevron {
            padding-top: 2px;
            margin-left: 5px;
            transition: transform 0.3s ease;
        }

        .show-more-btn .rotate {
            transform: rotate(180deg);
        }

        @media (max-width:480px) {
            display: flex;
            flex-direction: column;
            justify-content: center;

            .sidebar {
                align-content: center;
                align-self: center;
                max-width: 90%;

                .sidebar-btn {
                    display: flex;
                    align-self: center;
                    justify-content: center;
                    align-content: center;

                    &>i {
                        display: block;
                        align-items: center;
                        position: relative;
                        top: 3px;
                        right: 5px;
                    }
                }
            }

            .content-area {
                padding: 20px;
            }
        }

    }

    #default-message {
        display: block;
        /* Show the default message initially */
    }

    /* Responsive Design */
    @media screen and (max-width: 280px) {
        .interactive-sidebar {
            flex-direction: column;
            align-items: center;
            margin: 0 auto;

            .content-area {
                padding: 5px;
            }
        }

        .sidebar {
            max-width: 100%;
            margin-right: 0;
            margin-bottom: 20px;
            padding: 8px;

            .sidebar-btn {
                width: 300px;
            }
        }

        .content-area {
            flex: none;
            padding: 25px;
        }
    }

}